<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:cc="http://java.sun.com/jsf/composite">

    <body>

        <ui:composition>

            <div id="post">


                <h3>Lista de Questões</h3>

                <div class="questao" >
                    <!--                    <div class="questao" style="border-bottom: solid 1px; display: block">-->


                    <p:dataList value="#{QuestaoController.questaos}"  var="questaoTemp" paginator="true" type="ordered" rows="5" effectSpeed="fast" id="listaQuestoes"  
                                paginatorTemplate="{PreviousPageLink} {CurrentPageReport} {NextPageLink} {RowsPerPageDropdown}"  
                                rowsPerPageTemplate="5,10,15" >  
                        <p:column>


                            <ui:include src="../questao/questaoView.xhtml" />

                            <div id="painel">
                                <h:commandLink title="Para Workspace" action="#{QuestaoController.addQuestao}" >
                                    <p:graphicImage value="/resources/icones/095.png"/>
                                </h:commandLink>

                                <h:commandLink title="Visualizar" action="#{QuestaoController.load}" >
                                    <p:graphicImage value="/resources/icones/icon_view.gif"/>
                                </h:commandLink>
<!--
                                <c:if test="{questaoTemp.professor == UsuarioController.usuarioLogado.professor}">
                                    <h:commandLink title="Visualizar" action="{QuestaoController.load}" >
                                        <p:graphicImage value="/resources/icones/icon_view.gif"/>
                                    </h:commandLink>
                                </c:if>-->
                            </div>
                        </p:column>




                    </p:dataList>


                </div>


            </div>
        </ui:composition>


    </body>
</html>
